package com.hluobo.gnnulibrary.adapter;

import com.hluobo.gnnulibrary.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class AnnouncementListAdapter extends BaseAdapter {

	private LayoutInflater mInflater;
	
	public AnnouncementListAdapter(Context context){
		mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
	}
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 3;
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		View view;
		if(convertView != null){
			view = convertView;
		}else{
			view = mInflater.inflate(R.layout.listitem_home, parent, false);
		}
		return view;
	}

}
